<?php
$sizes = [
	'remont-telefonov' => '97x179',
];

if (!empty($servicesTop)):
	?>
	<dl class="widget">
		<dt>Популярные модели</dt>
		<dd>
			<div class="new-services">
				<ul>
					<?php
					foreach ($servicesTop as $servicesTop):
						?>
						<li>
							<div class="new-services__item">
								<div class="new-services__photo">
									<a href="/<?php echo $servicesTop['pageUrl']; ?>">
                                                                            <?php $src = $this->getController()->getImageUrl('/image/resize/' . (isset($sizes[$category]) ? $sizes[$category] : '200x150') . '/uploads/images/model/'. $servicesTop['pageImages']); ?>
										<img src="<?php echo $src; ?>" alt="<?php echo $servicesTop['pageTitle']; ?>" />
									</a>
								</div>
								<span>
									<a href="/<?php echo $servicesTop['pageUrl']; ?>"><?php echo $servicesTop['pageTitle']; ?></a>
								</span>
							</div>    
						</li>
					<?php endforeach; ?>		
				</ul>
			</div>    
		</dd>
	</dl>
<?php endif; ?>